package com.xzz.main;

import java.util.*;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.stream.Collectors;

/**
 * @author 黄会准
 * @since 2021-01-07
 */
public class Test {
    public static void main(String[] args) {
        List<String> list = Arrays.asList("h","e","l","l","o");
        Collections.reverse(list);
        System.out.println(list);
        String s = "dada";
        System.out.println(s.lastIndexOf("a"));
        System.out.println(s.indexOf("a"));
    }
}
